<%@page import="com.situ.web.entity.User"%>
<%@page import="com.situ.web.entity.PageBean"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.situ.web.entity.Student"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="lib/bootstrap-3.3.7-dist/css/bootstrap.css"/>
</head>
<body>
	<a onclick="xuanke()"  class="btn btn-success">选课</a>
	
	欢迎：${user.name}
	<a href="/JAVA_WEB_1907/loginServlet?method=logout">注销</a>
	<table class="table table-striped table-bordered table-hover table-condensed">
		<tr>
			<td>班级id</td>
			<td>班级名字</td>
			<td>课程名称</td>
			<td>课程学分</td>
		
		</tr>
		<c:forEach items="${list}" var="map">
			<tr>
				<td>${map['id']}</td>
				<td>${map['banjiname']}</td>
				<td>${map['coursename']}</td>
				<td>${map['credit']}</td>
				
			</tr>
		</c:forEach>
	</table>
	 <script src="js/jquery-1.11.3.js" type="text/javascript" charset="utf-8"></script>
    <script src="lib/layer/layer.js" type="text/javascript" charset="utf-8"></script>
    <script src="lib/mylayer.js" type="text/javascript" charset="utf-8"></script>
    <script src="lib/util.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
    		function xuanke(){
    			layer.open({
    				type : 2, // iframe
    				title : "班级选课",
    				area : ["500px", "500px"],
    				content : "${pageContext.request.contextPath}/student?method=suoyoubanjikecheng"
    			});
    			
    			
    			
    			
    		}
    </script>
</body>
</html>